﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Log On - Samusng Open API
</asp:Content>
<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">

    <script type="text/javascript" language="javascript">


        rnd.today = new Date();
        rnd.seed = rnd.today.getTime();
        function rnd() {
            rnd.seed = (rnd.seed * 9301 + 49297) % 233280;
            return rnd.seed / (233280.0);
        };
        function rand(number) {
            return Math.ceil(rnd() * number);
        };
    
    </script>

    <div>
        <% Html.BeginForm(); %>
        <fieldset>
            <legend>Account Information</legend>
            <div class="editor-label">
                User Name
            </div>
            <div class="editor-field">
                <%= Html.TextBox("txtUSER_ID", "1e4f4b095fcd545d36027904b642fbf0", new { @style = " width:300px;" })%>
            </div>
            <div class="editor-label">
                Password
            </div>
            <div class="editor-field">
                <%= Html.Password("txtPASSWORD", "32f2bfc882968a4bba727ecc4aa72210", new { @autocomplete = "false", @style = " width:300px;" })%>
            </div>
            <div class="editor-label">
                Validate Code
            </div>
            <div class="editor-field">
                <%= Html.TextBox("txtAUTH_CODE", "", new { @autocomplete = "false" ,@style=" width:100px;"})%>
                <img id="imgAUTH_CODE" name="imgAUTH_CODE" src="/Account/ValidateCode" alt="Refresh Validate Code"
                    onclick="this.src='/Account/ValidateCode?'+rnd();" style="cursor: hand;" align="absMiddle" />
            </div>
            <div class="editor-field">
                <%= Html.CheckBox("chkMANAGER", "manager")%>
                <label for="chkMANAGER">
                    Log on as manager</label>
            </div>
            <p>
                <input type="submit" value="Log On" />
            </p>
        </fieldset>
        <% Html.EndForm(); %>
    </div>
</asp:Content>
